package com.bzyd.spi;

/**
 * Created by Xianyue Dang on 2021/8/25
 */
public class TestSPI {
    public static void main(String[] args) throws ClassNotFoundException {

//        Class.forName("com.bzyd.spi.DriverImplMySQL");
//        Driver driver = DriverManager.getInstance();
        //MySQL公司实现的驱动……

        Class.forName("com.bzyd.spi.DriverImplOracle");
        Driver driver = DriverManager.getInstance();
        //Oracle公司实现的驱动……

        driver.doSomething();
    }
}
